//
//  DrawerManager.h
//  Drawer
//
//  Created by Young on 16/8/13.
//  Copyright © 2016年 Smile. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, DrawerManagerShowType) {
    DrawerManagerShowTypeLeft = 0,
    DrawerManagerShowTypeCenter = 1,
    DrawerManagerShowTypeLeftWithoutAnimation = 2,
    DrawerManagerShowTypeCenterWithoutAnimation =3
};

// 侧边栏显示整个屏幕的宽高比
static CGFloat const kLeftWidthScale = 0.75;

@interface DrawerManager : NSObject

@property (weak, nonatomic, readonly) UIViewController *centerViewController;
@property (readonly, weak, nonatomic) UIView *leftView;

+ (DrawerManager *)sharedDrawerManager;

- (void)installCenterViewController:(UIViewController *)centerViewController leftView:(UIView *)leftView;

- (void)hiddenSideShadow;
- (void)showSideShadow;

- (void)beginDragResponse;
- (void)cancelDragResponse;

- (void)setShowType:(DrawerManagerShowType)showType;

@end
